home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group92c.txt
/
000054_icon-group-sender _Mon Nov 2 03:19:51 1992.msg
< prev
next >
Wrap
Internet Message Format
|
1993-01-04
|
2KB
Received: by cheltenham.cs.arizona.edu; Tue, 3 Nov 1992 05:03:16 MST
Date: 2 Nov 92 03:19:51 GMT
From: sun-barr!cs.utexas.edu!uwm.edu!linac!uchinews!ellis!goer@ames.arc.nasa.gov (Richard L. Goerwitz)
Organization: University of Chicago Computing Organizations
Subject: Re: Character manipulation
Message-Id: <1992Nov2.031951.18774@midway.uchicago.edu>
References: <1992Nov01.000555.788292@sue.cc.uregina.ca>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
skagos@hercules.cs.uregina.ca (P. Takis Skagos) writes:
>
> While Icon is *GREAT* at manipulating data on a line-by-line basis,
>it, I feel, lacks somewhat in the character-by-character manipulation
>arena.
This is quite true. It certainly tends to encourage us to read files
line by line, and perform operations on those lines via scanning. If
we must do things on a char-by-char basis (as, for example, tokenizing),
then we can either a) figure out a way to bit off chunks that can be
scanned, or b) use Icon as a kind of poor-man's C. Too much of b and
we obviously shouldn't be using Icon. (Every language has it's strong
and weak points.)
Maybe if you'd post an example of what you'd like to do, we can col-
lectively solve the problem. It's always nice when people post ques-
tions about real-world problems.
One thing that's worth thinking about is whether string scanning could
be extended to cover files. That would solve your problem. Seems
like a great idea to me. Really great. It's something the Icon Pro-
ject has been talking about. Any bright students at the U of Arizona
looking for class projects :-). Would take some interesting buffering
and a lot of fseeks. But wouldn't it be neat to have scanning usable
on character streams as well as strings?
--
-Richard L. Goerwitz goer%midway@uchicago.bitnet
goer@midway.uchicago.edu rutgers!oddjob!ellis!goer